package com.hyjx.framework.uc.user;

import com.hyjx.framework.uc.depart.DepartModel;
import com.hyjx.framework.uc.menu.MenuModel;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
 * 用户登录 信息
 *
 * @author Peter
 */
public class UserInfo implements java.io.Serializable {
    private String user_id;    //用户id
    private String user_account;    //用户登录账号
    private String user_pwd;    //用户密码
    private String org_code;    //单位编码
    private String dataOrgCode;    //数据权限用org
    private String depart_code;    //部门id
    private String depart_code_fullcn; //部门中文全称
    private DepartModel depart;    //所属部门
    private String user_name;    //用户名称
    private String user_sex;    //性别
    private String office_tel;    //电话
    private String office_fax;    //传真
    private String mobile;    //手机
    private String email;    //电子邮件
    private String validity;    //是否有效
    private String roleIds;    //对应角色ids
    //private List<RoleModel> rolelist;	//对应角色列表
    //private List<MenuModel> menulist;	//对应菜单列表
    private List<DepartModel> departlist; //部门权限
    private boolean isSuperAdmin = false;    //是否超级管理员
    
    private String login_time;    //登录时间
    private String client_ip;    //客户端IP
    private String server_ip;    //服务端IP
    private String userIsAdmin = "0";    //是否超级管理员
    private String orgLevelId = "";    //用户所属单位的levelid
    private Map<String, String> extData = new LinkedHashMap<String, String>();
    private String nocheck;
    
    public String getNocheck() {
        return orgLevelId;
    }
    
    public void setNocheckd(String nocheck) {
        this.nocheck = nocheck;
    }
    
    public Map<String, String> getExtData() {
        return extData;
    }
    
    public void setExtData(Map<String, String> extData) {
        this.extData = extData;
    }
    
    public String getOrgLevelId() {
        return orgLevelId;
    }
    
    public void setOrgLevelId(String orgLevelId) {
        this.orgLevelId = orgLevelId;
    }
    
    public String getUserIsAdmin() {
        return userIsAdmin;
    }
    
    public void setUserIsAdmin(String userIsAdmin) {
        this.userIsAdmin = userIsAdmin;
    }
    
    private List<MenuModel> navMenuList;
    
    public List<MenuModel> getNavMenuList() {
        return navMenuList;
    }
    
    public void setNavMenuList(List<MenuModel> navMenuList) {
        this.navMenuList = navMenuList;
    }
    
    public String getUser_id() {
        return user_id;
    }
    
    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }
    
    public String getUser_account() {
        return user_account;
    }
    
    public void setUser_account(String user_account) {
        this.user_account = user_account;
    }
    
    public String getUser_name() {
        return user_name;
    }
    
    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }
    
    public String getUser_sex() {
        return user_sex;
    }
    
    public void setUser_sex(String user_sex) {
        this.user_sex = user_sex;
    }
    
    public String getOffice_tel() {
        return office_tel;
    }
    
    public void setOffice_tel(String office_tel) {
        this.office_tel = office_tel;
    }
    
    public String getMobile() {
        return mobile;
    }
    
    public void setMobile(String mobile) {
        this.mobile = mobile;
    }
    
    public String getEmail() {
        return email;
    }
    
    public void setEmail(String email) {
        this.email = email;
    }
    
    public String getValidity() {
        return validity;
    }
    
    public void setValidity(String validity) {
        this.validity = validity;
    }
    
    public String getUser_pwd() {
        return user_pwd;
    }
    
    public void setUser_pwd(String user_pwd) {
        this.user_pwd = user_pwd;
    }
    
    public String getOffice_fax() {
        return office_fax;
    }
    
    public void setOffice_fax(String office_fax) {
        this.office_fax = office_fax;
    }
    
    public String getRoleIds() {
        return roleIds;
    }
    
    public void setRoleIds(String roleIds) {
        this.roleIds = roleIds;
    }
    
    public List<DepartModel> getDepartlist() {
        return departlist;
    }
    
    public void setDepartlist(List<DepartModel> departlist) {
        this.departlist = departlist;
    }
    
    public boolean isSuperAdmin() {
        return isSuperAdmin;
    }
    
    public void setSuperAdmin(boolean isSuperAdmin) {
        this.isSuperAdmin = isSuperAdmin;
    }
    
    public DepartModel getDepart() {
        return depart;
    }
    
    public void setDepart(DepartModel depart) {
        this.depart = depart;
    }
    
    public String getDepartName() {
        return depart.getDepart_name();
    }
    
    public String getDepartLevel() {
        return depart.getDepart_level();
    }
    
    public String getDepartCode() {
        return depart.getDepart_code();
    }
    
    public String getLogin_time() {
        return login_time;
    }
    
    public void setLogin_time(String login_time) {
        this.login_time = login_time;
    }
    
    public String getDepart_code() {
        return depart_code;
    }
    
    public void setDepart_code(String depart_code) {
        this.depart_code = depart_code;
    }
    
    public String getClient_ip() {
        return client_ip;
    }
    
    public void setClient_ip(String client_ip) {
        this.client_ip = client_ip;
    }
    
    public String getServer_ip() {
        return server_ip;
    }
    
    public void setServer_ip(String server_ip) {
        this.server_ip = server_ip;
    }
    
    public String getOrg_code() {
        return org_code;
    }
    
    public void setOrg_code(String org_code) {
        this.org_code = org_code;
    }
    
    public String getDataOrgCode() {
        return dataOrgCode;
    }
    
    public void setDataOrgCode(String dataOrgCode) {
        this.dataOrgCode = dataOrgCode;
    }
    
    public String getDepart_code_fullcn() {
        return depart_code_fullcn;
    }
    
    public void setDepart_code_fullcn(String depart_code_fullcn) {
        this.depart_code_fullcn = depart_code_fullcn;
    }
    
    public String getExtDataValue(String key) {
        if (extData != null) {
            return extData.get(key);
        } else {
            return null;
        }
    }
    
    public void setExtDataValue(String key, String value) {
        if (extData == null) {
            extData = new LinkedHashMap<String, String>();
        }
        extData.put(key, value);
    }
}
